package com.example.converter.enums;

import com.example.converter.config.ConverterBaseEnum;

public enum Color implements ConverterBaseEnum {
    YELLOW(1, "黄"),
    RED(2, "红"),
    GREED(3, "绿");

    Color(Integer value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    Integer value;
    String msg;

    @Override
    public String toViewValue() {
        return String.valueOf(value);
    }
}
